home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ahoy 1984 July to December
/
Ahoy_Magazine_84-Jul-Dec_1984_Double_L_unofficial.d64
/
address book
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
7KB
|
269 lines
1500 data1500,do,not,enter,data,on,this,line
1502 print"[147]":poke53281,0:poke53280,11
1504 input"what is your first name";n$:goto 1508
1506 input"[147]sorry, i forgot your name";n$
1508 forl=1to1000:next
1510 print"[147]":poke53281,0:poke53280,11
1512 print"[158]address book <c> 1984 planet earth ltd.":print:t=0
1514 print"[l] list all entries"
1516 print
1518 print"[n] last name"
1520 printspc(25);" [146]"
1522 print"[f] first name"spc(10);" address [146]"
1524 printspc(25);" book [146]"
1526 print"[a] address"spc(12);"[207] [215] [215] [146][208]"
1528 printspc(23);"[152] [146][165] [152] [146] [146] [167][152] [146]"
1530 print"[c] city"spc(15);"[204] [215] [215] [146][186]"
1532 printspc(24);"[149] by [149] [146]"
1534 print"[s] state"spc(14);"[149] b.behling[149] [146]"
1536 printspc(24);"[149] [192][192][192][192][192][192][192][192][192][192][149] [146]"
1538 print"[z] zip code"spc(11);"[149] [146]"
1540 printspc(24);"[149] [146]"
1542 print"[p] phone number"spc(7);" [152][162][146] [162][146]"
1544 print
1546 print"[x] exit program"
1548 print
1550 print"[e] enter data"
1552 print
1554 print"[153]choice?"
1556 getk$:ifk$=""then 1556
1558 ifk$="l"thengosub 1580
1560 ifk$="n"thengosub 1598
1562 ifk$="f"thengosub 1706
1564 ifk$="a"thengosub 1746
1566 ifk$="c"thengosub 1638
1568 ifk$="s"thengosub 1786
1570 ifk$="x"thengosub 1678
1572 ifk$="e"thengoto 1978
1574 ifk$="z"thengosub 1826
1576 ifk$="p"thengosub 1866
1578 goto 1510
1580 print"[147]"
1582 gosub 1966
1584 ifa=1500thengoto 1590
1586 gosub 1906
1588 goto 1580
1590 print"[147]"spc(12);"[158] end of files. [146]"
1592 forl=1to1000:next
1594 restore
1596 return
1598 input"[147]what is the last name";j$:z=len(j$)
1600 print"[147]"spc(20-int((len(n$)+11)/2));"thank you ";n$;"."
1602 forl=1to1000:next:goto 1606
1604 printspc(7);"searching, please standby."
1606 gosub 1966
1608 ifa=1500thengoto 1614
1610 ifj$=left$(b$,z)thent=1:gosub 1906
1612 print"[147]":goto 1604
1614 ift=1thengoto 1630
1616 print"[147]"spc(20-int((len(j$)+14+len(n$))/2));j$;" not on file "n$;"."
1618 printspc(8);"[158][169] [223]"
1620 printspc(8);" [146]hit return to continue.[158] "
1622 printspc(8);"[146][223] [146][169]"
1624 getk$:ifk$=""thengoto 1624
1626 restore
1628 return
1630 print"[147]"spc(12);"[158] end of files. [146]"
1632 forl=1to1000:next
1634 restore
1636 return
1638 input"[147]what city do you want";j$:z=len(j$)
1640 print"[147]"spc(20-int((len(n$)+11)/2));"thank you ";n$;"."
1642 forl=1to1000:next:goto 1646
1644 printspc(7);"searching please standby."
1646 gosub 1966
1648 ifa=1500thengoto 1654
1650 ifj$=left$(e$,z)thent=1:gosub 1906
1652 print"[147]":goto 1644
1654 ift=1thengoto 1670
1656 print"[147]"spc(20-int((len(j$)+14+len(n$))/2));j$;" not on file "n$;"."
1658 printspc(8);"[169] [223]"
1660 printspc(8);" [146]hit return to continue. "
1662 printspc(8);"[146][223] [146][169]"
1664 getk$:ifk$=""thengoto 1664
1666 restore
1668 return
1670 print"[147]"spc(12);"[158] end of files. [146]"
1672 forl=1to1000:next
1674 restore
1676 return
1678 print"[147]"spc(5);"hit [x] to exit without saving."
1680 print""spc(8);"hit [a] to abort to menu."
1682 print""spc(8);"hit [s] to save listings."
1684 getk$:ifk$=""thengoto 1684
1686 ifk$="x"thenend
1688 ifk$="a"goto 1510
1690 ifk$<>"s"then 1678
1692 print""spc(11);"tape or disk [t/d]"
1694 gettd$:on-(td$="")goto 1694:iftd$="d"then 1702
1696 print""spc(5);"[158] rewind tape before saving!!! [146]"
1698 print""spc(9);"hit any key when ready"
1700 getk$:on-(k$="")goto 1700:save"address book":end
1702 print""spc(16);" saving [146]":save"@0:address book",8
1704 open15,8,15,"v":close15:end
1706 input"[147]what is the first name";j$:z=len(j$)
1708 print"[147]"spc(20-int((len(n$)+11)/2));"thank you ";n$;"."
1710 forl=1to1000:next:goto 1714
1712 printspc(7);"searching, please standby."
1714 gosub 1966
1716 ifa=1500thengoto 1722
1718 ifj$=left$(c$,z)thent=1:gosub 1906
1720 print"[147]":goto 1712
1722 ift=1thengoto 1738
1724 print"[147]"spc(20-int((len(j$)+14+len(n$))/2));j$;" not on file "n$;"."
1726 printspc(8);"[159][169] [223]"
1728 printspc(8);" [146]hit return to continue.[159] "
1730 printspc(8);"[146][223] [146][169]"
1732 getk$:ifk$=""thengoto 1732
1734 restore
1736 return
1738 print"[147]"spc(12);"[158] end of files. [146]"
1740 forl=1to1000:next
1742 restore
1744 return
1746 input"[147]what is the address";j$:z=len(j$)
1748 print"[147]"spc(20-int((len(n$)+11)/2));"thank you ";n$;"."
1750 forl=1to1000:next:goto 1754
1752 printspc(7);"searching, please standby."
1754 gosub 1966
1756 ifa=1500thengoto 1762
1758 ifj$=left$(d$,z)thent=1:gosub 1906
1760 print"[147]":goto 1752
1762 ift=1thengoto 1778
1764 print"[147]"spc(20-int((len(j$)+14+len(n$))/2));j$;" not on file "n$;"."
1766 printspc(8);"[156][169] [223]"
1768 printspc(8);" [146]hit return to continue.[156] "
1770 printspc(8);"[146][223] [146][169]"
1772 getk$:ifk$=""thengoto 1772
1774 restore
1776 return
1778 print"[147]"spc(12);"[158] end of files. [146]"
1780 forl=1to1000:next
1782 restore
1784 return
1786 input"[147]what state do you want";j$:z=len(j$)
1788 print"[147]"spc(20-int((len(n$)+11)/2));"thank you ";n$;"."
1790 forl=1to1000:next:goto 1794
1792 printspc(7);"searching, please standby."
1794 gosub 1966
1796 ifa=1500thengoto 1802
1798 ifj$=left$(f$,z)thent=1:gosub 1906
1800 print"[147]":goto 1792
1802 ift=1thengoto 1818
1804 print"[147]"spc(20-int((len(j$)+14+len(n$))/2));j$;" not on file "n$;"."
1806 printspc(8);"[169] [223]"
1808 printspc(8);" [146]hit return to continue. "
1810 printspc(8);"[146][223] [146][169]"
1812 getk$:ifk$=""thengoto 1812
1814 restore
1816 return
1818 print"[147]"spc(12);"[158] end of files. [146]
1820 [129]l[178]1[164]1000:[130]
1822 [140]
1824 [142]
1826 [133]"loadwhat is the zip code";j$:z[178][195](j$)
1828 [153]"load"[166]20[171][181](([195](n$)[170]11)[173]2));"thank you ";n$;"."
1830 [129]l[178]1[164]1000:[130]:[137] 1834
1832 [153][166]7);"searching, please standby."
1834 [141] 1966
1836 [139]a[178]1500[167][137] 1842
1838 [139]j$[178][200](g$,z)[167]t[178]1:[141] 1906
1840 [153]"load":[137] 1832
1842 [139]t[178]1[167][137] 1858
1844 [153]"load"[166]20[171][181](([195](j$)[170]14[170][195](n$))[173]2));j$;" not on file "n$;"."
1846 [153][166]8);"step (NULL)"
1848 [153][166]8);" waithit return to continue. "
1850 [153][166]8);"wait(NULL) waitstep"
1852 [161]k$:[139]k$[178]""[167][137] 1852
1854 [140]
1856 [142]
1858 [153]"load"[166]12);"sys end of files. wait"
1860 [129]l[178]1[164]1000:[130]
1862 [140]
1864 [142]
1866 [133]"loadwhat phone number";j$:z[178][195](j$)
1868 [153]"load"[166]20[171][181](([195](n$)[170]11)[173]2));"thank you ";n$;"."
1870 [129]l[178]1[164]1000:[130]:[137] 1874
1872 [153][166]7);"searching, please standby."
1874 [141] 1966
1876 [139]a[178]1500[167][137] 1882
1878 [139]j$[178][200](h$,z)[167]t[178]1:[141] 1906
1880 [153]"load":[137] 1872
1882 [139]t[178]1[167][137] 1898
1884 [153]"load"[166]20[171][181](([195](j$)[170]14[170][195](n$))[173]2));j$;" not on file "n$;"."
1886 [153][166]8);"forstep (NULL)"
1888 [153][166]8);" waithit return to continue.for "
1890 [153][166]8);"wait(NULL) waitstep"
1892 [161]k$:[139]k$[178]""[167][137] 1892
1894 [140]
1896 [142]
1898 [153]"load"[166]12);"sys end of files. wait"
1900 [129]l[178]1[164]1000:[130]
1902 [140]
1904 [142]
1906 [153]"loadcont file # >";a
1908 [153]"open (NULL)tanlentantantantantantanright$"
1910 [153]"open (NULL)name open(NULL)>";b$;", ";c$
1912 [153]"open (NULL) (NULL)"
1914 [153]"open (NULL)address open(NULL)>";d$
1916 [153]"open (NULL) (NULL)"
1918 [153]"open (NULL)city open(NULL)>";e$
1920 [153]"open (NULL) (NULL)"
1922 [153]"open (NULL)state open(NULL)>";f$
1924 [153]"open (NULL) (NULL)"
1926 [153]"open (NULL)zip codeopen(NULL)>";g$
1928 [153]"open (NULL) (NULL)"
1930 [153]"open (NULL)phone # open(NULL)>";h$
1932 [153]"open (NULL) (NULL)
1934 print"[158] [171][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][201]"
1936 print"[158] [221]hit [x] to abort to menu[158][221]"
1938 print"[158] [221] [221]"
1940 print" [221]hit [e] to edit file[158] [221]"
1942 print" [221] [221]"
1944 print" [221]hit return to continue [158][221]"
1946 print" [202][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][203]"
1948 getk$:ifk$=""thengoto 1948
1950 ifk$="x"thenrestore
1952 ifk$="x"thengoto 1510
1954 ifk$="e"thened=1:goto 1958
1956 return
1958 gosub 2002
1960 ifed=2thenprint"list";a;"-";a+1:goto 1964
1962 print"list"a
1964 print"[145][145][145]";:poke198,4:fori=631to636:pokei,13:next:end
1966 reada
1968 ifa=1500thenrestore
1970 ifa=1500thenreturn
1972 x=a
1974 readb$,c$,d$,e$,f$,g$,h$
1976 return
1978 input"[147]last name";i1$
1980 input"[147]first name";i2$
1982 input"[147]address";i3$
1984 input"[147]city";i4$
1986 input"[147]state";i5$
1988 input"[147]zip code";i6$
1990 input"[147]phone number";i7$
1992 print"[147]";spc(10);"filing. please wait."
1994 gosub 1966
1996 ifx>=1500thengoto 2022
1998 ifa=1500thengoto 2002
2000 goto 1994
2002 ld=len(b$)+len(c$)+len(d$)+len(e$)+len(f$)+len(g$)+len(h$)+len(str$(a))
2004 ifld>=67thenx=x+1:ifed=1thened=2:return
2006 ifed=1thenreturn
2008 dl=len(i1$)+len(i2$)+len(i3$)+len(i4$)+len(i5$)+len(i6$)+len(i7$)
2010 li=x+1:dl=dl+len(str$(li))
2012 r=4:ifdl>=67then 2026
2014 print"[147]"right$(str$(li),len(str$(li))-1)"data";li;"[157],";i1$;",";i2$;
2016 print",";i3$;",";i4$;",";i5$;",";i6$;",";i7$
2018 print"run1506"
2020 print"";:poke198,r:fori=631to635:pokei,13:next:end
2022 print"[147]"spc(13);"[153]memory full!!![146]":forl=1to2000:next
2024 restore:return
2026 print"[147]"right$(str$(li),len(str$(li))-1)"data";li;"[157],";i1$;",";i2$;
2028 print",";i3$
2030 li=li+1
2032 printright$(str$(li),len(str$(li))-1)"data";i4$;",";i5$;",";i6$;",";i7$
2034 r=5:goto 2018